package com.reds.backend.controller.dataController;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import com.reds.backend.service.data.dataGetService;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Service
@RequestMapping("/data")
@ResponseBody
public class dataGetController {
    @Autowired
    dataGetService dataGetService;

    @PostMapping("/getArticleSum/")
    public int getArticleSum(@RequestParam Map<String,String> map){
        return dataGetService.getArticleSum();
    }
    @PostMapping("/getNowDaySum/")
    public int getNowDaySum(@RequestParam Map<String,String> map){
        return dataGetService.getNowDaySum();
    }
    @PostMapping("/getAdminSum/")
    public int getAdminSum(@RequestParam Map<String,String> map){
        return dataGetService.getAdminSum();
    }
    @PostMapping("/getScenerySum/")
    public int getScenerySum(@RequestParam Map<String,String> map){
        return dataGetService.getScenerySum();
    }
    @PostMapping("/getStorySum/")
    public int getStorySum(@RequestParam Map<String,String> map){
        return dataGetService.getStorySum();
    }
    @PostMapping("/getActivitySum/")
    public int getActivitySum(@RequestParam Map<String,String> map){
        return dataGetService.getActivitySum();
    }
}
